import BaseElement from "../../core/BaseElement";
import IPageBox from "../../core/IPageBox";
import Loading from "../../core/Loading";

/**
 * 全局page容器
 */
export default class MainPageBox extends BaseElement implements IPageBox{
    loading:Loading
    constructor(props:MainPageBoxConfig){
        super();
        this.style.height="100%"
        this.style.overflow="hidden";
        this.loading=new Loading({
            type:"LoadingTest2"
        })
        this.hideLodding();
    }
    showLoading(){
        this.loading.show();
    }
    hideLodding(){
        this.loading.hidden();
    }
    setPage(page: BaseElement): void {
        this.setInnerElement(page);
        this.appendChild(this.loading)
    }

}
interface MainPageBoxConfig{
}